import Vue from 'vue';
import Router from 'vue-router';



Vue.use(Router)


export default new Router({
    linkActiveclass: 'router-link-activ',
    routes: [
        // 主页面
        {
            path: '/',
            component:() => import('components/header/Header.vue'),
            redirect: '/find/',
            children:[
                {
                    path:'/find/',
                    name:'find',
                    component:() => import('components/find/Find.vue'),
                },
                {
                    path:'/share/',
                    name:'share',
                    component:() => import('components/share/Share.vue'),
                },
                {
                    path:'/go/',
                    name:'go',
                    component:() => import('components/go/Go.vue'),
                },
            ]
        },
        // 我的页面
        {
            path:'/mine/',
            name:'mine',
            component:() => import('components/mine/Mine.vue'),
        },
        {
            path:'/editor/',
            name:'editor',
            component:() => import('components/editor/editor.vue'),
        },
        {
            path:'/login/',
            name:'login',
            component:() => import('components/login/login.vue'),
        },
        {
            path:'/register/',
            name:'register',
            component:() => import('components/login/register.vue'),
        },
        {
            path:'/phone_login/',
            name:'phone_login',
            component:() => import('components/login/phone-login.vue'),
        },
        {
            path:'/no_login/',
            name:'no_login',
            component:() => import('components/login/no-login.vue'),
        },
        {
            path:'/content/',
            name:'content',
            component:() => import('components/find/Content.vue')
        }
    ],
})